<style>
    table{
        width: 100% !important;
    }
</style>

<table class="layui-table" lay-filter="edit-table" lay-data="{method: 'post',loading:'true',
url:'{:url('Accounts/caraccountsinfo')}',page:true, id:'idDemo'}" lay-filter="test">

    <thead>
    <tr>
        <th lay-data="{field:'contractcar_id'}">ID</th>
        <th lay-data="{field:'contractcar_company'}">用车单位</th>
        <th lay-data="{field:'time'}">用车时间段</th>
        <th lay-data="{toolbar:'#contractcar_what'}">结算类型</th>
        <th lay-data="{field:'travel_time'}">用车时间</th>
        <th lay-data="{field:'mileage'}">用车公里数</th>
        <th lay-data="{field:'allmoney'}">结算总金额</th>
        <th lay-data="{field:'wherestore'}">出租分公司</th>
        <th lay-data="{field:'create_time'}">生成时间</th>
        <th lay-data="{field:'wherestore'}">操作</th>

    </tr>
    </thead>
</table>
<script type="text/html" id="contractcar_what">
    {{#  if(d.contractcar_what == 1){ }}
    按天
    {{#  } else { }}
    按公里
    {{#  } }}
</script>

